import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner input=new Scanner(System.in);
		while(input.hasNextInt())
		{   

			int a=input.nextInt();
			String s;
			s=Integer.toBinaryString(a);
			int count,count1=32;
			if(a==0)System.out.println(count1);
			else{count=32-s.length();System.out.println(count);}
		}
			
			}
}


